package cn.wx.read.core.service;


import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.wx.read.core.entity.Book;
import cn.wx.common.persistence.base.BaseService;
import cn.wx.common.unitofwork.aop.UseUnitOfWork;
import cn.wx.read.core.mapper.BookMapper;

@Service
@Transactional
public class BookService extends BaseService<Book, BookMapper> {
	
	/**
	 * 批量导入专家
	 */
	@UseUnitOfWork(saga = "BetchMysqlBook")
	public boolean insertBatchBook(List<Book> books) {
		return super.insertBatch(books);
	}
	
}
